package demo5;

import java.util.Date;

// 每日售卖菜品
class DailySellingDish {
    private int merchantId;
    private String dishName;
    private String dishDescription;
    private double price;
    private int purchaseQuantity;
    private Date sellingDate;

    public DailySellingDish(int merchantId, String dishName, String dishDescription, double price, int purchaseQuantity, Date sellingDate) {
        this.merchantId = merchantId;
        this.dishName = dishName;
        this.dishDescription = dishDescription;
        this.price = price;
        this.purchaseQuantity = purchaseQuantity;
        this.sellingDate = sellingDate;
    }

    // 菜品发布（可在构造函数完成，此方法可根据实际扩展）
    public void publishDish() {
        // 可添加具体逻辑
    }

    // 菜品查询
    public String getDishInfo() {
        return "Merchant ID: " + merchantId + ", Dish Name: " + dishName +
                ", Description: " + dishDescription + ", Price: " + price +
                ", Purchase Quantity: " + purchaseQuantity + ", Selling Date: " + sellingDate;
    }

    // 菜品购买情况
    public int getPurchaseQuantity() {
        return purchaseQuantity;
    }

    // Getters 和 Setters
    public int getMerchantId() {
        return merchantId;
    }

    public String getDishName() {
        return dishName;
    }

    public String getDishDescription() {
        return dishDescription;
    }

    public double getPrice() {
        return price;
    }

    public Date getSellingDate() {
        return sellingDate;
    }
}
